#include <stdio.h>
int main(){
    int a;
    int x;
    double sum = 0;

    scanf("%d",&x);
    for(a = 1;a <= x; a++){
        sum += 1.0/a;
    }
    printf("%f",sum);
    return 0;
}